home *** CD-ROM | disk | FTP | other *** search
/ Nautilus 1994 April / Nautilus CD Magazine Volume 4-4 April 1994 Windows Edition.mdf / setup / nautcd / link / falnet.scr < prev    next >
Text File  |  1993-08-18  |  944b  |  51 lines

  1. !
  2. !  Copyright (c) 1993
  3. !  by CompuServe Incorporated, Columbus, Ohio
  4. !
  5. !  The information in this software is subject to change without
  6. !  notice and should not be construed as a commitment by CompuServe.
  7. !
  8. !  FALNET:
  9. !    Connect to FALNET
  10. !    Success:  returns %Success
  11. !    Failure:  saves error msg in %FailureMsg and returns %Failure
  12. !
  13. !+V
  14. ! "3.1"
  15. !-V
  16.  
  17. ConnectStr = "Connecting to FALNET";
  18. FailStr = "FALNET not responding";
  19.  
  20. Start_FALNET:
  21.     show ConnectStr;
  22.     Tries = 5;
  23.     on cancel goto Return_Cancel;
  24.  
  25. Wait_FALNET:
  26.     if Tries = 0 goto FALNET_Failure;
  27.     Tries = Tries - 1;
  28.  
  29.     wait
  30.         "READY"        goto Send_FALNET_Host,
  31.         "User ID:"    goto Return_Success
  32.     until 80;
  33.  
  34.     send %CR & %CR & %CR;
  35.     goto Wait_FALNET;
  36.  
  37. Send_FALNET_Host:
  38.     send "C CIS" & %CR;
  39.     goto Wait_FALNET;
  40.  
  41. FALNET_Failure:
  42.     define %FailureMsg = FailStr;
  43.     exit %Failure;
  44.  
  45. Return_Cancel:
  46.     exit %Cancel;
  47.  
  48. Return_Success:
  49.     send %CR;
  50.     exit %Success;
  51.